package com.fivefu.core.hillstone.dto.request;

import com.fivefu.base.common.utils.str.StrUtils;
import io.swagger.annotations.ApiModelProperty;

public class VideoDto {

    /**
     * 通道ID
     */
    @ApiModelProperty(value = "通道ID",required = true)
    private String  channelCode;

    /**
     * 开始时间，UTC0时区时间，格式为YYYYMMDDTHHmmssZ
     */
    @ApiModelProperty(value = "开始时间，UTC0时区时间，格式为YYYYMMDDTHHmmssZ",required = true)
    private String  sTime;

    /**
     * 结束时间，UTC0时区时间，格式为YYYYMMDDTHHmmssZ
     */
    @ApiModelProperty(value = "结束时间，UTC0时区时间，格式为YYYYMMDDTHHmmssZ",required = true)
    private String  eTime;

    /**
     * 录像位置
     */
    @ApiModelProperty(value = "录像位置",required = true)
    private String  location;

    /**
     * 录像类型，不带参数表示不限类型
     */
    @ApiModelProperty(value = "录像类型，不带参数表示不限类型")
    private String  recordType;

    /**
     * 录像子类型
     */
    @ApiModelProperty(value = "录像子类型")
    private String  recordSubType;

    /**
     * main、extra1，不带参数表示不限类型
     */
    @ApiModelProperty(value = "main、extra1，不带参数表示不限类型")
    private String  videoStream;

    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public String getsTime() {
        return sTime;
    }

    public void setsTime(String sTime) {
        this.sTime = sTime;
    }

    public String geteTime() {
        return eTime;
    }

    public void seteTime(String eTime) {
        this.eTime = eTime;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getRecordType() {
        return recordType;
    }

    public void setRecordType(String recordType) {
        this.recordType = recordType;
    }

    public String getRecordSubType() {
        return recordSubType;
    }

    public void setRecordSubType(String recordSubType) {
        this.recordSubType = recordSubType;
    }

    public String getVideoStream() {
        return videoStream;
    }

    public void setVideoStream(String videoStream) {
        this.videoStream = videoStream;
    }

    public String getParam() {
        return "?channelCode=" + channelCode + "&beginTime=" + sTime + "&endTime=" + eTime
                + "&location=" + location + "&recordType=" + StrUtils.isCheckNull(recordType)
                + "&recordSubType=" + StrUtils.isCheckNull(recordSubType) + "&videoStream=" + StrUtils.isCheckNull(videoStream);
    }
}
